public class Example {
    public static void main(String args[]){
        Cirle cirle = new Cirle();
        Rect rect = new Rect();
        Geomry g = new Geomry(cirle,rect);//构造方法，传入具体对象
        g.setC1(2,3,10);//设置圆的形状
        g.setR1(3,4,5,6);//设置长方形形状
        g.show();//显示图形
    }

}
